package com.richapp.launcher.database.system.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by jack on 2015/4/14 0014.
 */

@DatabaseTable(tableName = "userMachineButton")
public class UserMachineButton {

    @DatabaseField(generatedId = true)
    private int userMachineButtonId;    //用户按钮表主键

    @DatabaseField(columnName = "machineName",canBeNull = false,uniqueCombo = true)
    private String machineName;  //用户家电名称

    @DatabaseField(columnName = "buttonId",canBeNull = false,uniqueCombo = true)
    private int buttonId;   //按钮模板表ID

    @DatabaseField(columnName = "buttonName",canBeNull = false)
    private String buttonName;  //用户按钮名称

    @DatabaseField(columnName = "code",canBeNull = false,defaultValue = "")
    private String code;    //按钮发送码，16进制数据

    @DatabaseField(columnName = "studyFlag",canBeNull = false,defaultValue = "false")
    private String studyFlag;   //是否学习过

    public UserMachineButton(){

    }

    public int getUserMachineButtonId() {
        return userMachineButtonId;
    }

    public void setUserMachineButtonId(int userMachineButtonId) {
        this.userMachineButtonId = userMachineButtonId;
    }

    public int getButtonId() {
        return buttonId;
    }

    public void setButtonId(int buttonId) {
        this.buttonId = buttonId;
    }

    public String getButtonName() {
        return buttonName;
    }

    public void setButtonName(String buttonName) {
        this.buttonName = buttonName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getStudyFlag() {
        return studyFlag;
    }

    public void setStudyFlag(String studyFlag) {
        this.studyFlag = studyFlag;
    }
}
